package com.hualan.service.service.service;

import com.hualan.mapper.ProblemMapper;
import com.hualan.pojo.Problems;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProblemServiceImpl implements ProblemService{
    @Autowired
    private ProblemMapper problemMapper;
    public List<Problems> listAll() {
        return problemMapper.listAll();
    }

    public Problems listByPid(Integer pid) {
        return problemMapper.listByPid(pid);
    }

    public Integer add(Problems problem) {
        return problemMapper.add(problem);
    }

    public List<Integer> listIdByUid(Integer uid) {
        return problemMapper.listIdByUid(uid);
    }
}
